﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevComponents.DotNetBar;
using DTO;
using BUS;

namespace GUI
{
    public partial class frmHinhAnh : DevComponents.DotNetBar.Metro.MetroForm
    {
        public frmHinhAnh()
        {
            InitializeComponent();
        }

        private void frmHinhAnh_Load(object sender, EventArgs e)
        {
            //int ma = Form2.ma;
            //ThietBiBUS bus = new ThietBiBUS();
            //ThietBiDTO dto = bus.LayThongTinThietBi(ma);

            //btnHinhAnh.Image = Image.FromFile("Images/" + Form2.img);
            //btnHinhAnh.Image = Form2.img;
            //btnHinhAnh.Text = Form2.tentb;


            //lbHinhAnh.Image = Form2.img;
            //lbHinhAnh.Text = Form2.tentb;
            //lbChucNang.Text = "Chức năng: " + Form2.chucnang;
            lbHinhAnh.BackgroundImage = frmMain.img;
            if (frmMain.info == "")
                txtThongTin.Text = "Thông tin: Chưa có!";
            else
                txtThongTin.Text = "Thông tin: " + frmMain.info;
        }

        private void lbHinhAnh_Click(object sender, EventArgs e)
        {
            Close();
        }

        private void frmHinhAnh_Click(object sender, EventArgs e)
        {
            Close();
        }

        private void txtThongTin_Click(object sender, EventArgs e)
        {
            Close();
        }
    }
}